using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Web.UI;

namespace OpenWaves.ActivityFeed.Web.Controls
{
    public class ListClientSettings
    {
        public string BeforeRemove { get; set; }
        public string AfterRender { get; set; }
        public string AfterAdd { get; set; }

        private readonly Collection<KnockoutBinding> _additionalBindings = new Collection<KnockoutBinding>();

        [PersistenceMode(PersistenceMode.InnerProperty)]
        public Collection<KnockoutBinding> AdditionalBindings
        {
            get { return this._additionalBindings; }
        }
    }

    public class KnockoutBinding
    {
        public string Name { get; set; }
        public string Expression { get; set; }
    }
}